package com.chen.service;

import com.chen.dao.FansTestingTimeMapper;
import com.chen.entity.FansTestingTime;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class FansTestingTimeService {
    @Autowired
    private FansTestingTimeMapper fansTestingTimeMapper;



    public boolean insertFansTestTime( FansTestingTime fansTestingTime){
        int i = this.fansTestingTimeMapper.insertSelective(fansTestingTime);
        return  i>0;
    }

    public  boolean updateFansTestTime( FansTestingTime fansTestingTime){
        int i = this.fansTestingTimeMapper.updateByPrimaryKeySelective(fansTestingTime);
        return  i>0;
    }

    public FansTestingTime queryFansTestingTimeByFid(String fid) {
        return this.fansTestingTimeMapper.queryFansTestingTimeByFid(fid);
    }


    public boolean deleteFansTestingTimeById(FansTestingTime fansTestingTime){
        int i = this.fansTestingTimeMapper.deleteByPrimaryKey(fansTestingTime);
        return i>0;
    }
}
